﻿--[[
   @brief    super_multi_account_mgr_desc
   @author   maxyao
   @version  1.0
   @date     2017-03-14
--]]

super_multi_account_mgr_desc = {
    module_name = 'super_multi_account_mgr',
    events = {
        {
            c_event = {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = 'super_multi_account_mgr_model.init_primary_uin'
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUB_ACCOUNT_SUCCESS,
                    callback = 'super_multi_account_mgr_control.update_sub_account_data'
                },
            },
            lua_event = {
                {
                    id  = banner_event.UPDATE_GAME_STATE,
                    callback = 'super_multi_account_mgr_control.update_primary_account_game_state'
                },
            },
            reg_service = {
                {
                    id = 'i_service_super_multi_account_update_data',
                    callback = "super_multi_account_mgr_control.update_data"
                },
                {
                    id = 'i_service_super_multi_account_add_sub_account',
                    callback = "super_multi_account_mgr_control.add_sub_account"
                },
                {
                    id = 'i_service_super_multi_account_del_sub_account',
                    callback = "super_multi_account_mgr_control.del_sub_account"
                },
                {
                    id = 'i_service_super_multi_account_launch_game',
                    callback = "super_multi_account_mgr_control.launch_game"
                },
            },
            lua_file = 'super_multi_account_mgr\\control.lua'
        }
    }
};

desc_mgr.add(super_multi_account_mgr_desc);